home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ein / sources / einlib.lzh / LIBSRC.LZH / EIN_FL04.C < prev    next >
C/C++ Source or Header  |  1994-07-18  |  2KB  |  78 lines

  1. /*<Header>==============================================================
  2. *
  3. *    FILE MANAGER / "EIN_FL04.C"
  4. *
  5. *        [ EIN(tm) project : âtâ@âCâïæÇì∞òΓÅòè╓ÉöîQ ]
  6. *
  7. *    COPYRIGHT  Nam  1994, All rights reserved.
  8. *
  9. *-----------------------------------------------------------------------
  10. *    V1.0L01â┐    94.07.07/Nam    âvâìâgâ^âCâv
  11. *</Header>==============================================================*/
  12. #include    <stdio.h>
  13. #include     <stdlib.h>
  14. #include     <string.h>
  15. #include    <snd.h>
  16. #include    <winb.h>
  17. #include    <te.h>
  18. #include    <fntb.h>
  19. #include    <gui.h>
  20.  
  21. #define    EIN_FILE
  22. #include    "..\eintm.h"
  23.  
  24. #ifndef NOERR
  25. #define    NOERR    (0)
  26. #endif
  27. #ifndef ERROR
  28. #define    ERROR    (1)
  29. #endif
  30.  
  31. /* from EIN_ASM1.ASM */
  32. extern void        EIN_setVector( unsigned long * );
  33. extern void        EIN_resetVector( unsigned long * );
  34.  
  35. /*<Func>================================================================
  36. *    FILE    *EIN_fopen( char *fullpath, char *mode )
  37. *
  38. *    üyèT  ùvüz    âtâ@âCâïé≡âIü[âvâôé╡é─âtâ@âCâïânâôâhâïé≡ò╘é╡é▄é╖üB
  39. *
  40. *    üyï@  ö\üz    Æ╩Åφé╠'fopen()'é╞ô»ùlé╔Ägùpé┼é½é▄é╖üB
  41. *                int24hânâôâhâëé≡âtâbâNé╡é─éóéΘé╠é┼üAâhâëâCâué╔âAâNâZâX
  42. *                é┼é½é╚é⌐é┴é╜ÅΩìçé┼éαâVâFâïé╠âAâëü[âgé≡Åoé╡é▄é╣é±üB
  43. *
  44. *    üyôⁿ  ù═üz
  45. *                *fullpath    :    âIü[âvâôé╖éΘâtâ@âCâïû╝ò╢ÄÜù±é╓é╠â|âCâôâ^
  46. *                *mode        :    âéü[âhò╢ÄÜù±é╓é╠â|âCâôâ^
  47. *
  48. *    üyÅo  ù═üz
  49. *
  50. *    üyè╓ÉöÆlüz    != NULL        É│ÅφÅIù╣(âtâ@âCâïâ|âCâôâ^)
  51. *                == NULL        ê┘ÅφÅIù╣
  52. *
  53. *    üyÆì  ê╙üz    
  54. *
  55. *    üyÄQ  Å╞üz    
  56. *
  57. *-----------------------------------------------------------------------
  58. *    V11L10    1994.07.07/Nam
  59. *</Func>==============================================================*/
  60. FILE    *EIN_fopen( char *fullpath, char *mode )
  61. {
  62.     unsigned long    vect[3];    /* int24hânâôâhâëé╠æ▐ö≡ùp */
  63.     FILE    *fp;
  64.  
  65.     if ( fullpath == NULL){
  66.         return NULL;
  67.     }
  68.     if ( strlen( fullpath ) < 1 ){
  69.         return NULL;
  70.     }
  71.     EIN_setVector( vect );        /* int24hé≡âtâbâN */
  72.     fp = fopen( fullpath, mode );
  73.     EIN_resetVector( vect );    /* int24hânâôâhâëé≡ò£ïA */
  74.  
  75.     return fp;
  76. }
  77.  
  78.